package com.gyul.findmystock.db;

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

import com.gyul.findmystock.util.Configs;

public class DatabaseHelper extends SQLiteOpenHelper {
	private static final String TAG = "DatabaseHelper";
	private static final String DB_NAME = "findmystock";
	private static final int DB_VERSION = 2;
	
	public DatabaseHelper() {
		super(Configs.context, DB_NAME, null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		Log.d(TAG, "onCreate()");
		db.execSQL(DaoCompany.CREATE_QUERY);
		db.execSQL(DaoAnalysis.CREATE_QUERY);		
		db.execSQL(DaoTrade.CREATE_QUERY);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
	}

}
